ABC073 B - Theater
https://atcoder.jp/contests/abc073/tasks/abc073_b
提出
AC
code: python
n = int(input())
ans = 0
for i in range(n):
l, r =
int(i) for i in input().split()
ans += r - l + 1
print(ans)